package com.toman.Adpter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.toman.R;
import com.toman.bean.ItemListBean;

import java.util.List;

/**
 * Created by 邹苏隆 on 2018/5/10.
 * description：
 */

public class ItemListMoreAdapter extends AdapterBase<ItemListBean, ItemHolder> {

    private LayoutInflater inflater;
    private Context mContext;

    public ItemListMoreAdapter(Context context) {
        inflater = LayoutInflater.from(context);
        this.mContext = context;

    }


    @Override
    protected void handlerData(List<ItemListBean> mList2, int position, ItemHolder itemView) {
        ItemListBean bean = mList2.get(position);
        itemView.tv_name.setText(bean.getName());
        itemView.tv_content1.setText(bean.getID());

    }

    @Override
    protected ItemHolder getItemViewHolder() {
        return new ItemHolder();
    }

    @Override
    protected View initConvertView(View convertView, ItemHolder v) {
        convertView = inflater.inflate(R.layout.item_item_list_more, null);
        v.tv_name = (TextView) convertView
                .findViewById(R.id.tv_name);
        v.tv_content1=(TextView) convertView
                .findViewById(R.id.tv_no);
        return convertView;
    }

    @Override
    protected void onReachBottom() {

    }
}

